package com.mmr.config;

import com.mmr.util.HttpsClientRequestFactory;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class Config {
    @Bean
    public RestTemplate restTemplate(RestTemplateBuilder restTemplateBuilder) {
        restTemplateBuilder.requestFactory(HttpsClientRequestFactory::new);
        return restTemplateBuilder.build();
    }
}
